package conson.tech.manage.coupons.feign;

import conson.tech.core.constant.SecurityConstants;
import conson.tech.core.response.Response;
import conson.tech.manage.coupons.feign.dto.UserFeignDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * InterfaceName: EpassFeignService
 * Description: 远程访问隧e通
 * Author: guoxt
 * Date: 2020/7/30 19:47
 * Version: 1.0
 */
@FeignClient(name = "Epass", url = "${feignclient.epass.domain:}")
public interface EpassFeignService {

    /**
     * 创建隧e通券批次
     *
     * @param dto
     * @return conson.tech.core.response.Response
     */
    @PostMapping("/userInfo")
    Response queryUserInfo(@Valid @RequestBody UserFeignDto dto);
}
